package com.xinqi.modules.chat.chat.friend.dto.req;


import com.xinqi.common.green.annotation.Text;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 申请加好友消息内容-请求对象
 *
 * @author: system
 * @date: 2023/01/12
 */
@Data
@Schema(description = "申请加好友消息内容-新增")
public class ChatFriendApplyMessageCreateDTO implements Serializable {

    /**
     * 关联申请好友表的id
     */
    @NotNull(message = "{chat.friend.apply.id.not.blank}")
    private Long applyId;

    /**
     * 回复内容
     */
    @Text
    @NotEmpty(message = "{chat.friend.apply.content.not.blank}")
    @Size(min = 0, max = 60, message = "{chat.friend.apply.content.length.valid}")
    private String content;

    @Schema(title = "操作用户ID(内部流转参数，不对外)", hidden = true)
    private Long operationUserId;
}
